summaryrefslogblamecommitdiffstats
path: root/usr/local/bin/inet6.sh
blob: 280038b0f9006fd878972545665d932676c8c08f (plain) (tree)
1
2
3
         
                                                                                           
          
#!/bin/sh
k=`ip a s scope global | grep inet6 | grep -v fd16 | cut -d\  -f6 | cut -d/ -f1 | head -n1`
echo -n $k